<div class="modules index">
<h2><?php __('Modules');?></h2>
<p>
<?php
echo $paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
));
?></p>
<table cellspacing="0" class="widefat fixed">
<thead>
<tr>
	<th width="50px"><?php echo $paginator->sort('id');?></th>
	<th width="150"><?php echo $paginator->sort('name');?></th>
	<th class="actions" align="center"><?php __('Actions');?></th>
</tr>
</thead>
<?php
$i = 0;
foreach ($modules as $module):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="event"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $i; ?>
		</td>
		<td align="left" width="50">
			<?php echo $module['Module']['name']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link($html->image('view.png'), array('action'=>'view', $module['Module']['id']), array('title'=>'See The Complete Data'),false,false); ?>
			<?php echo $html->link($html->image('update.png'), array('action' => 'edit', $module['Module']['id']), array('title'=>'Edit Data'),false,false); ?>
			<?php echo $html->link($html->image('delete.png'), array('action' => 'delete', $module['Module']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $module['Module']['id']),false); ?>
			
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array('tag'=>'span'), null, array('tag'=>'span','class'=>'disabled'));?>
 | <?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array('tag'=>'span'), null, array('tag'=>'span','class' => 'disabled'));?>
	
</div>
<div class="favorite-actions2">
	
		<div id ="favorite-actions2"><?php echo $html->link(__('New Module', true), array('action' => 'add')); ?></div>
		<div id ="favorite-actions2"><?php echo $html->link(__('List Menus', true), array('controller' => 'menus', 'action' => 'index')); ?></div>
		<div id ="favorite-actions2"><?php echo $html->link(__('New Menu', true), array('controller' => 'menus', 'action' => 'add')); ?> </div>
	  <div id ="favorite-actions2"><?php echo $html->link(__('List Usergroups', true), array('controller' => 'usergroups', 'action' => 'index')); ?></div> 
		<div id ="favorite-actions2"><?php echo $html->link(__('New Usergroup', true), array('controller' => 'usergroups', 'action' => 'add')); ?></div> 
	
</div>
